package com.tabjin.rfidsocket.service.access;

import com.tabjin.rfidsocket.common.utils.PagedGridResult;
import com.tabjin.rfidsocket.pojo.ArchHouse;
import com.tabjin.rfidsocket.pojo.bo.access.ArchHouseBO;
import com.tabjin.rfidsocket.pojo.vo.access.ArchHouseVO;

import java.util.List;

public interface ArchHouseService {
    void add(ArchHouseBO archHouseBO);

    void delete(Integer houseId);

    ArchHouseVO update(ArchHouseBO archHouseBO);

    PagedGridResult getAll(Integer page, Integer pageSize);

    /**
     * @param buildingId
     * @return
     */
    List<ArchHouse> getHousesByBuildingId(Integer buildingId);

    /**
     * 单元名称
     *
     * @param buildingUnit 楼栋单元名称
     * @return
     */
    List<ArchHouse> getHousesByBuildingUnit(String buildingUnit);

    ArchHouseVO getItem(Integer houseId);
}
